package torch

import (
	"path"
)

func All(str ...string) bool {
	flag := true
	for _, value := range str {
		if value == "" {
			flag = false
			break
		}

	}

	return flag

}

func EatPicture(name string) bool {
	flag := false
	old := path.Ext(name)

	lop := []string{
		".jpg",
		".png",
	}

	//fmt.Println(name, old, lop)

	for _, value := range lop {
		if old == value {
			flag = true
			break
		}
	}

	return flag

}
